package com.example.demo.entity.pojo;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * 作业表(Homework)实体类
 *
 * @author makejava
 * @since 2025-07-13 16:30:30
 */
public class Homework implements Serializable {
    private static final long serialVersionUID = -59070622164418121L;

    /**
     * 作业ID
     */
    private Integer id;

    /**
     * 作业标题
     */
    private String title;

    /**
     * 作业说明
     */
    private String description;

    /**
     * 题目数量
     */
    private Integer questionCount;

    /**
     * 是否允许查看答案：0=提交后可看，1=随时可看
     */
    private Integer allowViewAnswer;

    /**
     * 班级ID
     */
    private Integer classId;

    /**
     * 教师ID
     */
    private String teacherId;

    /**
     * 发布时间
     */
    private Date publishTime;

    /**
     * 截止时间
     */
    private Date deadline;

    /**
     * 总分
     */
    private BigDecimal totalScore;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    // Getters and Setters
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getQuestionCount() {
        return questionCount;
    }

    public void setQuestionCount(Integer questionCount) {
        this.questionCount = questionCount;
    }

    public Integer getAllowViewAnswer() {
        return allowViewAnswer;
    }

    public void setAllowViewAnswer(Integer allowViewAnswer) {
        this.allowViewAnswer = allowViewAnswer;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public String getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public Date getDeadline() {
        return deadline;
    }

    public void setDeadline(Date deadline) {
        this.deadline = deadline;
    }

    public BigDecimal getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(BigDecimal totalScore) {
        this.totalScore = totalScore;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
